Skip to content

settings: persist generation defaults and player mute state#58

Open
LiBai (RGB-loop) wants to merge 1 commit intoLightricks:mainfrom
RGB-loop:feature/persist-generation-settings
Open

settings: persist generation defaults and player mute state#58
LiBai (RGB-loop) wants to merge 1 commit intoLightricks:mainfrom
RGB-loop:feature/persist-generation-settings

Conversation

@RGB-loop
Copy link

@RGB-loop LiBai (RGB-loop) commented Mar 13, 2026

Summary

  • Extend AppSettings to persist user's preferred generation parameters (model, duration, resolution, fps, aspect ratio, camera motion) and video player mute state across app restarts
  • Previously these settings were hardcoded defaults that reset on every launch, causing users to repeatedly adjust their preferences (especially the volume issue mentioned in the issue)

Changes

Backend (backend/state/app_settings.py):

  • Add 7 new fields: default_model, default_duration, default_video_resolution, default_fps, default_aspect_ratio, default_camera_motion, player_muted
  • Add validators for duration (1-20) and fps (1-60) clamping
  • Update SettingsResponse with matching fields

Frontend:

  • AppSettingsContext.tsx: Extend interface and defaults
  • Playground.tsx / GenSpace.tsx: Initialize from appSettings, sync changes via updateSettings
  • VideoPlayer.tsx: Read/write playerMuted from appSettings

Test plan

  • TypeScript type check passes
  • Python Pyright check passes (0 errors)
  • All 262 backend tests pass

Closes #29

Extend AppSettings to remember user's preferred generation parameters
(model, duration, resolution, fps, aspect ratio, camera motion) and
video player mute state across app restarts.

Previously these settings were hardcoded defaults that reset on every
launch, causing users to repeatedly adjust their preferences.

Backend:
- Add 7 new fields to AppSettings and SettingsResponse
- Add validators for duration and fps clamping

Frontend:
- Initialize Playground/GenSpace settings from appSettings
- Sync user changes back to backend via updateSettings
- VideoPlayer now reads/writes playerMuted from appSettings

Closes Lightricks#29

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

For the love of god, please make the program remember your settings

1 participant